<!--<template>-->
<!--  <el-dialog-->
<!--    :title="!dataForm.id ? '新增' : '修改'"-->
<!--    :close-on-click-modal="false"-->
<!--    :visible.sync="visible">-->
<!--    <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">-->
<!--    <el-form-item label="" prop="area">-->
<!--      <el-input v-model="dataForm.area" placeholder=""></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="" prop="areaEn">-->
<!--      <el-input v-model="dataForm.areaEn" placeholder=""></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="" prop="line">-->
<!--      <el-input v-model="dataForm.line" placeholder=""></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="" prop="lineEn">-->
<!--      <el-input v-model="dataForm.lineEn" placeholder=""></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="" prop="equipmentName">-->
<!--      <el-input v-model="dataForm.equipmentName" placeholder=""></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="" prop="workCenter">-->
<!--      <el-input v-model="dataForm.workCenter" placeholder=""></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="" prop="equipmentComposition">-->
<!--      <el-input v-model="dataForm.equipmentComposition" placeholder=""></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="" prop="specification">-->
<!--      <el-input v-model="dataForm.specification" placeholder=""></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="" prop="usage">-->
<!--      <el-input v-model="dataForm.usage" placeholder=""></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="" prop="interfaceParameters">-->
<!--      <el-input v-model="dataForm.interfaceParameters" placeholder=""></el-input>-->
<!--    </el-form-item>-->
<!--    </el-form>-->
<!--    <span slot="footer" class="dialog-footer">-->
<!--      <el-button @click="visible = false">取消</el-button>-->
<!--      <el-button type="primary" @click="dataFormSubmit()">确定</el-button>-->
<!--    </span>-->
<!--  </el-dialog>-->
<!--</template>-->

<!--<script>-->
<!--  export default {-->
<!--    data () {-->
<!--      return {-->
<!--        visible: false,-->
<!--        dataForm: {-->
<!--          id: 0,-->
<!--          area: '',-->
<!--          areaEn: '',-->
<!--          line: '',-->
<!--          lineEn: '',-->
<!--          equipmentName: '',-->
<!--          workCenter: '',-->
<!--          equipmentComposition: '',-->
<!--          specification: '',-->
<!--          usage: '',-->
<!--          interfaceParameters: ''-->
<!--        },-->
<!--        dataRule: {-->
<!--          area: [-->
<!--            { required: true, message: '不能为空', trigger: 'blur' }-->
<!--          ],-->
<!--          areaEn: [-->
<!--            { required: true, message: '不能为空', trigger: 'blur' }-->
<!--          ],-->
<!--          line: [-->
<!--            { required: true, message: '不能为空', trigger: 'blur' }-->
<!--          ],-->
<!--          lineEn: [-->
<!--            { required: true, message: '不能为空', trigger: 'blur' }-->
<!--          ],-->
<!--          equipmentName: [-->
<!--            { required: true, message: '不能为空', trigger: 'blur' }-->
<!--          ],-->
<!--          workCenter: [-->
<!--            { required: true, message: '不能为空', trigger: 'blur' }-->
<!--          ],-->
<!--          equipmentComposition: [-->
<!--            { required: true, message: '不能为空', trigger: 'blur' }-->
<!--          ],-->
<!--          specification: [-->
<!--            { required: true, message: '不能为空', trigger: 'blur' }-->
<!--          ],-->
<!--          usage: [-->
<!--            { required: true, message: '不能为空', trigger: 'blur' }-->
<!--          ],-->
<!--          interfaceParameters: [-->
<!--            { required: true, message: '不能为空', trigger: 'blur' }-->
<!--          ]-->
<!--        }-->
<!--      }-->
<!--    },-->
<!--    methods: {-->
<!--      init (id) {-->
<!--        this.dataForm.id = id || 0-->
<!--        this.visible = true-->
<!--        this.$nextTick(() => {-->
<!--          this.$refs['dataForm'].resetFields()-->
<!--          if (this.dataForm.id) {-->
<!--            this.$http({-->
<!--              url: this.$http.adornUrl(`/generator/devicelist/info/${this.dataForm.id}`),-->
<!--              method: 'get',-->
<!--              params: this.$http.adornParams()-->
<!--            }).then(({data}) => {-->
<!--              if (data && data.code === 0) {-->
<!--                this.dataForm.area = data.devicelist.area-->
<!--                this.dataForm.areaEn = data.devicelist.areaEn-->
<!--                this.dataForm.line = data.devicelist.line-->
<!--                this.dataForm.lineEn = data.devicelist.lineEn-->
<!--                this.dataForm.equipmentName = data.devicelist.equipmentName-->
<!--                this.dataForm.workCenter = data.devicelist.workCenter-->
<!--                this.dataForm.equipmentComposition = data.devicelist.equipmentComposition-->
<!--                this.dataForm.specification = data.devicelist.specification-->
<!--                this.dataForm.usage = data.devicelist.usage-->
<!--                this.dataForm.interfaceParameters = data.devicelist.interfaceParameters-->
<!--              }-->
<!--            })-->
<!--          }-->
<!--        })-->
<!--      },-->
<!--      // 表单提交-->
<!--      dataFormSubmit () {-->
<!--        this.$refs['dataForm'].validate((valid) => {-->
<!--          if (valid) {-->
<!--            this.$http({-->
<!--              url: this.$http.adornUrl(`/generator/devicelist/${!this.dataForm.id ? 'save' : 'update'}`),-->
<!--              method: 'post',-->
<!--              data: this.$http.adornData({-->
<!--                'id': this.dataForm.id || undefined,-->
<!--                'area': this.dataForm.area,-->
<!--                'areaEn': this.dataForm.areaEn,-->
<!--                'line': this.dataForm.line,-->
<!--                'lineEn': this.dataForm.lineEn,-->
<!--                'equipmentName': this.dataForm.equipmentName,-->
<!--                'workCenter': this.dataForm.workCenter,-->
<!--                'equipmentComposition': this.dataForm.equipmentComposition,-->
<!--                'specification': this.dataForm.specification,-->
<!--                'usage': this.dataForm.usage,-->
<!--                'interfaceParameters': this.dataForm.interfaceParameters-->
<!--              })-->
<!--            }).then(({data}) => {-->
<!--              if (data && data.code === 0) {-->
<!--                this.$message({-->
<!--                  message: '操作成功',-->
<!--                  type: 'success',-->
<!--                  duration: 1500,-->
<!--                  onClose: () => {-->
<!--                    this.visible = false-->
<!--                    this.$emit('refreshDataList')-->
<!--                  }-->
<!--                })-->
<!--              } else {-->
<!--                this.$message.error(data.msg)-->
<!--              }-->
<!--            })-->
<!--          }-->
<!--        })-->
<!--      }-->
<!--    }-->
<!--  }-->
<!--</script>-->
